This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Update module namespace object according to the latest ECMA262
https://bugs.webkit.org/show_bug.cgi?id=168280 Reviewed by Saam Barati. JSTests: * modules/namespace-object-symbol-iterator-name.js: * modules/namespace-object-typed-array-fast-path.js: * modules/namespace.js: (shouldBe.JSON.stringify.Reflect.getOwnPropertyDescriptor): (shouldThrow): Source/JavaScriptCore: Reflect updates to the module namespace object. 1. @@iterator property is dropped[1]. 2. @@toStringTag property becomes non-configurable[1]. 3. delete with Symbol should be delegated to the JSObject's one[2]. [1]: https://tc39.github.io/ecma262/#sec-module-namespace-objects [2]: tc39/ecma262#767 * runtime/JSModuleNamespaceObject.cpp: (JSC::JSModuleNamespaceObject::finishCreation): (JSC::JSModuleNamespaceObject::deleteProperty): (JSC::moduleNamespaceObjectSymbolIterator): Deleted. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@212430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
19b9378
commit 920bd4c
Showing
6 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
2017-02-16 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Update module namespace object according to the latest ECMA262 | ||
https://bugs.webkit.org/show_bug.cgi?id=168280 | ||
|
||
Reviewed by Saam Barati. | ||
|
||
* modules/namespace-object-symbol-iterator-name.js: | ||
* modules/namespace-object-typed-array-fast-path.js: | ||
* modules/namespace.js: | ||
(shouldBe.JSON.stringify.Reflect.getOwnPropertyDescriptor): | ||
(shouldThrow): | ||
|
||
2017-02-11 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Implement (Shared)ArrayBuffer.prototype.byteLength | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { shouldBe } from "./resources/assert.js"; | ||
import * as ns from "./namespace-object-symbol-iterator-name.js"; | ||
|
||
shouldBe(ns[Symbol.iterator].name, "[Symbol.iterator]"); | ||
shouldBe(ns[Symbol.iterator], undefined); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
2017-02-16 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Update module namespace object according to the latest ECMA262 | ||
https://bugs.webkit.org/show_bug.cgi?id=168280 | ||
|
||
Reviewed by Saam Barati. | ||
|
||
Reflect updates to the module namespace object. | ||
|
||
1. @@iterator property is dropped[1]. | ||
2. @@toStringTag property becomes non-configurable[1]. | ||
3. delete with Symbol should be delegated to the JSObject's one[2]. | ||
|
||
[1]: https://tc39.github.io/ecma262/#sec-module-namespace-objects | ||
[2]: https://github.com/tc39/ecma262/pull/767 | ||
|
||
* runtime/JSModuleNamespaceObject.cpp: | ||
(JSC::JSModuleNamespaceObject::finishCreation): | ||
(JSC::JSModuleNamespaceObject::deleteProperty): | ||
(JSC::moduleNamespaceObjectSymbolIterator): Deleted. | ||
|
||
2017-02-16 Carlos Garcia Campos <[email protected]> | ||
|
||
Unreviewed. Fix the build after r212424. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters