Skip to content
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

Merged
merged 6 commits into from
Mar 10, 2018
Merged

Use native attributes #124

merged 6 commits into from
Mar 10, 2018

Conversation

cpcallen
Copy link
Collaborator

No description provided.

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.
Fix some comments and a few other small style issues.

Also: nativeToPseudo can now handle property attributes.
this.throwNativeException(e);
}
} else if (obj instanceof Interpreter.Sentinel) {
// Whoops; this should have been caught by acorn (because strict).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acorn -> Acorn

}
} else if (obj instanceof Interpreter.Sentinel) {
// Whoops; this should have been caught by acorn (because strict).
throw Error("Uncaught illegal deletion of unqualified identifier");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes.

// they are all non-configurable, so delete *always* fails).
tests.deleteOwnFromPrimitive = function() {
try {
delete "hello".length;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes.

Copy link
Collaborator Author

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…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants