Skip to content

Commit eb7e471

Browse files
committed
Function.prototype: Fix typos
1 parent 1dec8eb commit eb7e471

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/built-ins/Function/prototype/arguments/prop-desc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ WellKnownIntrinsicObjects.forEach(function(record) {
3333
}
3434
});
3535
if (throwTypeError) {
36-
assert.sameValue(descriptor.set, throwTypeError, "Function.prototype.arguments getter is %ThrowTypeError%");
36+
assert.sameValue(argumentsDesc.set, throwTypeError, "Function.prototype.arguments getter is %ThrowTypeError%");
3737
}
3838
assert.throws(TypeError, function() {
3939
return Function.prototype.arguments;

test/built-ins/Function/prototype/caller/prop-desc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ WellKnownIntrinsicObjects.forEach(function(record) {
3131
}
3232
});
3333
if (throwTypeError) {
34-
assert.sameValue(descriptor.set, throwTypeError, "Function.prototype.caller getter is %ThrowTypeError%");
34+
assert.sameValue(callerDesc.set, throwTypeError, "Function.prototype.caller getter is %ThrowTypeError%");
3535
}
3636
assert.throws(TypeError, function() {
3737
return Function.prototype.caller;

0 commit comments

Comments
 (0)