This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Below things were fixed in chakrashim * There was unnecessary assert added in previous commit for `PropertyDescriptor`. Removed it. * We wanted to cache `Object.getOwnPropertyDescriptor` but while initializing the shim we did by extracting `getOwnPropertyDescriptor` property from `Object.prototype` which was `undefined`. This was not broken so far because it was never used. Node started using this feature and hence realized it. Fixed it by calling `JsGetOwnPropertyDescriptor` instead. This has performance hit slightly because now property names has to be converted to property id before calling Jsrt api. Earlier this was taken care by runtime. Below things were fixed for unit test * Error message difference * There was a test case marked as known issue but that doesn't fail for chakracore. Skipping its execution so it doesn't get tagged as FAILED.
- Loading branch information
1 parent
233a053
commit ed2964b
Showing
14 changed files
with
73 additions
and
40 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
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
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
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
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,7 +1,7 @@ | ||
// Flags: --expose-internals | ||
'use strict'; | ||
|
||
require('../common'); | ||
const common = require('../common'); | ||
const URL = require('url').URL; | ||
const assert = require('assert'); | ||
const urlToOptions = require('internal/url').urlToOptions; | ||
|
@@ -44,8 +44,14 @@ assert.strictEqual(url.searchParams, oldParams); // [SameObject] | |
// non-writable property should throw. | ||
// Note: this error message is subject to change in V8 updates | ||
assert.throws(() => url.origin = 'http://foo.bar.com:22', | ||
new RegExp('TypeError: Cannot set property origin of' + | ||
' \\[object URL\\] which has only a getter')); | ||
new RegExp( | ||
common.engineSpecificMessage({ | ||
v8: 'TypeError: Cannot set property origin of' + | ||
' \\[object URL\\] which has only a getter', | ||
chakracore: 'TypeError: Assignment to read-only' + | ||
' properties is not allowed in strict mode' | ||
}) | ||
)); | ||
assert.strictEqual(url.origin, 'http://foo.bar.com:21'); | ||
assert.strictEqual(url.toString(), | ||
'http://user:[email protected]:21/aaa/zzz?l=25#test'); | ||
|
@@ -120,8 +126,14 @@ assert.strictEqual(url.hash, '#abcd'); | |
// non-writable property should throw. | ||
// Note: this error message is subject to change in V8 updates | ||
assert.throws(() => url.searchParams = '?k=88', | ||
new RegExp('TypeError: Cannot set property searchParams of' + | ||
' \\[object URL\\] which has only a getter')); | ||
new RegExp( | ||
common.engineSpecificMessage({ | ||
v8: 'TypeError: Cannot set property searchParams of' + | ||
' \\[object URL\\] which has only a getter', | ||
chakracore: 'TypeError: Assignment to read-only properties' + | ||
' is not allowed in strict mode' | ||
}) | ||
)); | ||
assert.strictEqual(url.searchParams, oldParams); | ||
assert.strictEqual(url.toString(), | ||
'https://user2:[email protected]:23/aaa/bbb?k=99#abcd'); | ||
|
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