questions about js-engine

Hello,

I'd like to ask some questions regarding the JavaScript Engine.

1. Is there a roadmap?
2. Does the js-engine "only" contain classes that are specified in the
ECMA 262?
3. or is it possible to add additional functionality to e.g. the date
object? For example date formatting or timezone data?

Best Regards,

Oliver Block

0
oliver
5/1/2007 11:54:00 PM
mozilla.dev.tech.js-engine 2040 articles. 0 followers. Post Follow

2 Replies
390 Views

Similar Articles

[PageSpeed] 16

oliver.block@lycos.de wrote:

> 2. Does the js-engine "only" contain classes that are specified in the
> ECMA 262?

ECMA 262 does not define any "classes" at all.
But even looking at the objects defined in there, by now the 
Spidermonkey (C engine) implements JavaScript 1.7 which has objects like 
XML and XMLList as specified by the ECMAScript for XML (E4X) 
specification and has the stuff described here 
<http://developer.mozilla.org/en/docs/New_in_JavaScript_1.7> so there 
are additional objects like the Iterator function.
The Rhino engine (Java engine) implements JavaScript 1.6 with E4X.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
0
Martin
5/2/2007 1:47:33 PM
On 2 Mai, 15:47, Martin Honnen <mahotr...@yahoo.de> wrote:
> ECMA 262 does not define any "classes" at all.

Thanks for reminding me. I had a week off.:)

Regards,

Oliver

0
oliver
5/2/2007 3:04:44 PM
Reply:

Similar Artilces:

questions of a js engine starter
My job is to make compony's html browser to support javascipt. I started this project just two weeks ago. if I open a html include 3 scripts, how many JSContext shall I create? one JSContext per script or one JSContext per html? lyg wrote: > My job is to make compony's html browser to support javascipt. I started >this project just two weeks ago. > if I open a html include 3 scripts, how many JSContext shall I create? > one JSContext per script or one JSContext per html? > > One per window, if necessary; one per thread, if poss...

Use js/TypeDecls.h for basic JS engine type declarations
Hi, In a recent thread ("Stop #including jsapi.h everywhere!"), I wrote the following. > Next time you're thinking of adding a |#include "jsapi.h"| statement, > please think about whether a forward declaration would suffice -- i.e. > if you are only using public JS types (i.e. not functions), and only > using them as pointers, references, or parameters in function > declarations. (Forward-declaring JS_PUBLIC_API types is harder; ask > me for help if you need to do that.) > > [BTW, you might think "these popular forward declar...

Call js from 1 js to other js
Hi to all developers, I have two javascript file 1 Validation.js 2 Date.js there are some functions in the file I wanted to know how can i add the reference of Date.js file in Validation.js . because if i want to call a function of date.js in validation.js then i need to copy the function from date.js and paste it in validation.js to work   help me..     Imran Khan You can't copy pieces of one into the other. You'd need to include both files into the page. NC...   Once both the files are included onto the page, every function is accessibl...

[QUESTION] Concurrency in FireFox 2.0.0.8 js-engine
Hi all, I have tested the following code to know whether javascript engine is multi-threaded or not. var x; function test01() { x = 0; for (i=0; i<150; i++) { setTimeout(function() { x++; if (x%2 != 0) x++; // This code is executed once x++; }, 50 + (100*Math.random())); } } function test02() { x = 0; for (i=0; i<150; i++) { setTimeout(function() { x++; if (x%2 != 0) x++; // This code is executed once for (j=0; j<(10000*Math.random()); j++) {} /* Non deterministic short delay */ x++; }, 30 + (50*Math.random()))...

superreview requested: [Bug 410946] Crash in JS engine aborting applet making Java/JS calls : [Attachment 305554] Fix.
Johnny Stenback (:jst) <jst@mozilla.org> has asked Boris Zbarsky (reviews very slow until May) <bzbarsky@mit.edu> for superreview: Bug 410946: Crash in JS engine aborting applet making Java/JS calls https://bugzilla.mozilla.org/show_bug.cgi?id=410946 Attachment 305554: Fix. https://bugzilla.mozilla.org/attachment.cgi?id=305554&action=edit ------- Additional Comments from Johnny Stenback (:jst) <jst@mozilla.org> See previous comment for description of what this does. ...

superreview granted: [Bug 410946] Crash in JS engine aborting applet making Java/JS calls : [Attachment 305554] Fix.
Boris Zbarsky (reviews very slow until May) <bzbarsky@mit.edu> has granted Johnny Stenback (:jst) <jst@mozilla.org>'s request for superreview: Bug 410946: Crash in JS engine aborting applet making Java/JS calls https://bugzilla.mozilla.org/show_bug.cgi?id=3D410946 Attachment 305554: Fix. https://bugzilla.mozilla.org/attachment.cgi?id=3D305554&action=3Dedit ------- Additional Comments from Boris Zbarsky (reviews very slow until May) <bzbarsky@mit.edu> Could you add documentation to nsIObjectFrame which says which of the metho= ds might destroy the frame? ...

superreview granted: [Bug 410946] Crash in JS engine aborting applet making Java/JS calls : [Attachment 306220] Updated diff, ready to land.
Johnny Stenback (:jst) <jst@mozilla.org> has granted superreview: Bug 410946: Crash in JS engine aborting applet making Java/JS calls https://bugzilla.mozilla.org/show_bug.cgi?id=410946 Attachment 306220: Updated diff, ready to land. https://bugzilla.mozilla.org/attachment.cgi?id=306220&action=edit ------- Additional Comments from Johnny Stenback (:jst) <jst@mozilla.org> Updated fix, fixes all of the above. Boris, the only real difference here is how nsPluginDestroyRunnable works, it's now a PRCList with a static list head so that when we run one of these we ca...

about DOM and JS engine
bXkgZGVhciBmcmllbmRzLAoKaSB3YW50IHRvIHBhcnNlciBhIGlucHV0IGh0bWwgZmlsZSAod2l0 aCBzb21lIEpTIGNvZGVzIGluIGl0KSB0byBhIERPTSBvZiBnZWNrbywKYW5kIHRoZW4gb3BlcmF0 ZSB0aGUgRE9NIHdpdGggdGhlIEpTIGNvZGVzLApmaW5hbGx5IG91dHB1dCB0aGUgcmVzdWx0IGh0 bWwgZmlsZSBmcm9tIHRoZSBET00uCgppIGFtIGEgZ3JlZW4gaGFuZCB3aXRoIGdlY2tvLAppIHdp bGwgYmUgdmVyeSBncmF0ZWZ1bCBmb3IgeW91ciBhZHZpc2Ugb3IgZXhhbXBsZSBjb2RlcywKdGhh bmtzIGluIGFkdmFuY2UhCgotLSAKQmVzdCBSZWdhcmRzLAoKICAgICAgICAgICAgICAgICAgICAg ICBIRSBYaWFvR3VhbmcKCqhUqFSoVKhUqFSoVKhUqFSoVKhUqFSoVKhUqFSoVKhUqFSoVKhUqFSo VKhUqFSoVKhUqFSoVKhUCkJpb21ldHJpY3MgUmVzZWFyY2ggR3JvdX...

JS Engine Interpreter
Hi, I have been instrumenting the JS engine interpreter for logging memory upda= tes on JS scripts. My current instrumentation logs every use of the interpr= eter for script execution which also includes browser (internal) script exe= cution. I wanted to ask if there is a way to separate these internal calls = from the user (webpage) specific scripts running on the interpreter.=20 Cheers, Erdal ...

JS Engine
Hi All, I am a newbie in JS engine usage. I have basic doubts about JS. As I understand, using JIT while interpreting vxml document using JS engine will enhance the performance. If I am not wrong, can anyone explain how does it boost the performance. regards, Manju ...

JS jit engine
Which JavaScript JIT engine is used in the latest nightlies and alphas? TIA! Herrmann Hofer schrieb: > Which JavaScript JIT engine is used in the latest nightlies and alphas? All current Mozilla releases and nightlies, including the SeaMonkey ones, use TraceMonkey right now, doing tracing JIT on supported platforms. While TraceMonkey on current nightlies has become significantly faster than it was before, SeaMonkey will switch to JaegerMonkey once it's stable enough, probably within the next month, which hopefully will already have the intelligent combination of method...

superreview requested: [Bug 212231] Errors from document.open() cause silent failures in JS : [Attachment 127391] Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception
Johnny Stenback <jst@netscape.com> has asked Boris Zbarsky <bzbarsky@mit.edu> for superreview: Bug 212231: Errors from document.open() cause silent failures in JS http://bugzilla.mozilla.org/show_bug.cgi?id=212231 Attachment 127391: Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception http://bugzilla.mozilla.org/attachment.cgi?id=127391&action=edit ...

superreview granted: [Bug 212231] Errors from document.open() cause silent failures in JS : [Attachment 127391] Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception
Boris Zbarsky <bzbarsky@mit.edu> has granted Johnny Stenback <jst@netscape.com>'s request for superreview: Bug 212231: Errors from document.open() cause silent failures in JS http://bugzilla.mozilla.org/show_bug.cgi?id=212231 Attachment 127391: Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception http://bugzilla.mozilla.org/attachment.cgi?id=127391&action=edit ...

superreview granted: [Bug 212231] Errors from document.open() cause silent failures in JS : [Attachment 127391] Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception #2
Christopher A. Aillon <caillon@aillon.org> has granted Boris Zbarsky <bzbarsky@mit.edu>'s request for superreview: Bug 212231: Errors from document.open() cause silent failures in JS http://bugzilla.mozilla.org/show_bug.cgi?id=212231 Attachment 127391: Don't return JS_FALSE in common cases to the JS engine w/o throwing an exception http://bugzilla.mozilla.org/attachment.cgi?id=127391&action=edit ------- Additional Comments from Christopher A. Aillon <caillon@aillon.org> r=caillon if you fix nsHTMLElementSH::ScrollIntoView() to do the right thing as w...

Web resources about - questions about js-engine - mozilla.dev.tech.js-engine

West Lothian question - Wikipedia, the free encyclopedia
He illustrated his point by pointing out the absurdity of a Member of Parliament for West Lothian being able to vote on matters affecting the ...

Karen Chetcuti: Search continues for Victorian mother, as police question neighbour Michael Cardamone ...
A search for missing Victorian woman Karen Chetcuti will resume in the state's north-east this morning, as police continue to question her neighbour ...

Sen. Franken Questions Google's Collection of Students' Private Data
Ad Age has partnered with Voxgov, a one-stop source of unedited communications from all branches of the U.S. federal government, to serve up ...

Cavuto Responds to Critics Who Saw Bias in Debate Question: ‘You’re An Ass’
Fox News Channel host Neil Cavuto said anyone who thought he blamed the financial crisis on Barack Obama during the Republican presidential debate ...

Anchorage's man Nick Abboud leaves more questions at Dick Smith
Nick Abboud's departure from Dick Smith ends a tumultuous chapter for the long-time retailer.

A boy mishears a question asking who does not pray, raises his hand, and is accused of blasphemy, so ...
... and presents it on a plate to the cleric whose question he misunderstood. The poor boy is Mohammad Anwar, 15, of the Hujra Shah Muqeem district ...

Kerry: "No question" deal "accelerated" prisoner swap
White House takes action after U.N. agency releases findings on Iran's compliance with nuclear deal

Trump says he has no questions about Rubio's eligibility to be president
CNN Trump says he has no questions about Rubio's eligibility to be president CNN Washington (CNN) Donald Trump drew a distinction between ...

Bernie Sanders Rips Andrea Mitchell For Her Stupid Bill Clinton Question
You know what? It's about time a candidate ripped a moderator for asking a really, really stupid question, instead of giving back a canned answer. ...

Huff Post: Where Are The Global Warming Questions, Moderators?
'Who thinks Fox Business is going to ask about climate change tonight?

Resources last updated: 1/18/2016 7:25:29 AM