-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use native attributes #124
Conversation
Because the first step is really the zeroth step, the new runTest implementation was inadvertently doing a serialization immediately after the first step instead of, as intended, only after steps steps.
Changing .length of array should throw if it would cause a nonwritable, nonconfigurable property to be deleted.
These never do anything, but they should do nothing in the correct way.
The most significant change is that the .property objects which serve as dictionaries of own properties inherit from the object's prototype's .property object. Simplifies some things considerably and seems to provide a small performance improvment.
server/interpreter.js
Outdated
this.throwNativeException(e); | ||
} | ||
} else if (obj instanceof Interpreter.Sentinel) { | ||
// Whoops; this should have been caught by acorn (because strict). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acorn -> Acorn
server/interpreter.js
Outdated
} | ||
} else if (obj instanceof Interpreter.Sentinel) { | ||
// Whoops; this should have been caught by acorn (because strict). | ||
throw Error("Uncaught illegal deletion of unqualified identifier"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single quotes.
server/tests/db/test_01_es5.js
Outdated
// they are all non-configurable, so delete *always* fails). | ||
tests.deleteOwnFromPrimitive = function() { | ||
try { | ||
delete "hello".length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that the tests are remotely consistent about that otherwise…
No description provided.