Fix values of properties that reference intrinsic function objects (#4024)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai daniel.batyai@h-lab.eu
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Copyright JS Foundation and other contributors, http://js.foundation
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
assert(Array.prototype.values === Array.prototype[Symbol.iterator]);
|
||||
assert(Set.prototype.values === Set.prototype[Symbol.iterator]);
|
||||
assert(Set.prototype.keys === Set.prototype[Symbol.iterator]);
|
||||
assert(Map.prototype.entries === Map.prototype[Symbol.iterator]);
|
||||
assert(Date.prototype.toGMTString === Date.prototype.toUTCString);
|
||||
assert(Number.parseInt === parseInt);
|
||||
assert(Number.parseFloat === parseFloat);
|
||||
|
||||
var typedarrays = [Uint8Array, Uint16Array, Uint32Array, Int8Array, Int16Array, Int32Array, Float32Array, Float64Array];
|
||||
for (ta1 of typedarrays) {
|
||||
for (ta2 of typedarrays) {
|
||||
assert(ta1.prototype.values === ta2.prototype[Symbol.iterator]);
|
||||
}
|
||||
|
||||
assert(ta1.prototype.toString === Array.prototype.toString);
|
||||
}
|
||||
@@ -60,7 +60,6 @@
|
||||
<test id="built-ins/decodeURIComponent/S15.1.3.2_A2.5_T1.js"><reason></reason></test>
|
||||
<test id="built-ins/decodeURI/S15.1.3.1_A2.5_T1.js"><reason></reason></test>
|
||||
<test id="built-ins/GeneratorPrototype/next/context-constructor-invocation.js"><reason></reason></test>
|
||||
<test id="built-ins/Map/prototype/Symbol.iterator.js"><reason></reason></test>
|
||||
<test id="built-ins/Promise/all/invoke-then.js"><reason></reason></test>
|
||||
<test id="built-ins/Promise/all/species-get-error.js"><reason></reason></test>
|
||||
<test id="built-ins/Promise/exec-args.js"><reason></reason></test>
|
||||
|
||||
Reference in New Issue
Block a user