Skip to content

Commit e664576

Browse files
committed
fix some issues updating from master
1 parent 2a14b19 commit e664576

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/core-js/modules/es.json.parse.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Context.prototype = {
152152
break;
153153
}
154154
}
155-
if (!closed) throw new SyntaxError('Unterminated object at: ' + i);
155+
if (!closed) throw new $SyntaxError('Unterminated object at: ' + i);
156156
return this.node(OBJECT, object, this.index, i, nodes);
157157
},
158158
array: function () {
@@ -182,7 +182,7 @@ Context.prototype = {
182182
break;
183183
}
184184
}
185-
if (!closed) throw new SyntaxError('Unterminated array at: ' + i);
185+
if (!closed) throw new $SyntaxError('Unterminated array at: ' + i);
186186
return this.node(OBJECT, array, this.index, i, nodes);
187187
},
188188
string: function () {
@@ -201,7 +201,7 @@ Context.prototype = {
201201
if (source[i] === '.') {
202202
var fractionStartIndex = i + 1;
203203
i = this.skip(IS_DIGIT, fractionStartIndex);
204-
if (fractionStartIndex === i) throw new SyntaxError("Failed to parse number's fraction at: " + i);
204+
if (fractionStartIndex === i) throw new $SyntaxError("Failed to parse number's fraction at: " + i);
205205
}
206206
if (source[i] === 'e' || source[i] === 'E') {
207207
i++;

packages/core-js/modules/es.typed-array.set.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var exportTypedArrayMethod = require('../internals/export-typed-array-method');
44
var aTypedArray = require('../internals/a-typed-array');
55
var lengthOfArrayLike = require('../internals/length-of-array-like');
66
var toOffset = require('../internals/to-offset');
7-
var toIndexedObject = require('../internals/to-object');
7+
var toObject = require('../internals/to-object');
88
var fails = require('../internals/fails');
99

1010
var $RangeError = RangeError;
@@ -30,7 +30,7 @@ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && fails(func
3030
exportTypedArrayMethod('set', function set(arrayLike /* , offset */) {
3131
aTypedArray(this);
3232
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
33-
var src = toIndexedObject(arrayLike);
33+
var src = toObject(arrayLike);
3434
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
3535
var length = this.length;
3636
var len = lengthOfArrayLike(src);

0 commit comments

Comments
 (0)