Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Known JavaScript Directives [duplicate]

The ECMAScript specification defines the Use Strict Directive, but permits implementations to define their own directives. From here:

Implementations may define implementation specific meanings for ExpressionStatement productions which are not a Use Strict Directive and which occur in a Directive Prologue.

What are the known implementation-specific directives? A quick Google search yields nothing other than use strict.

I can think of use asm and use strong. Are there any others in use?

like image 591
Jackson Avatar asked Aug 16 '26 19:08

Jackson


1 Answers

For Spidermonkey I found only source:

macro(useAsm, useAsm, "use asm")
macro(useStrict, useStrict, "use strict")

V8 same source:

F(use_asm, "use asm")                            
F(use_strict, "use strict")
like image 122
Stan Kondrat Avatar answered Aug 18 '26 10:08

Stan Kondrat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!