diff --git a/test/built-ins/Uint8Array/prototype/setFromBase64/detached-buffer.js b/test/built-ins/Uint8Array/prototype/setFromBase64/detached-buffer.js index 5c01a7f43b..5055082711 100644 --- a/test/built-ins/Uint8Array/prototype/setFromBase64/detached-buffer.js +++ b/test/built-ins/Uint8Array/prototype/setFromBase64/detached-buffer.js @@ -26,3 +26,4 @@ var target = new Uint8Array([255, 255, 255]); assert.throws(TypeError, function() { target.setFromBase64('Zg==', targetDetachingOptions); }); +assert.sameValue(getterCalls, 1); diff --git a/test/built-ins/Uint8Array/prototype/toBase64/detached-buffer.js b/test/built-ins/Uint8Array/prototype/toBase64/detached-buffer.js index efdf072eaf..2b72f1fdf7 100644 --- a/test/built-ins/Uint8Array/prototype/toBase64/detached-buffer.js +++ b/test/built-ins/Uint8Array/prototype/toBase64/detached-buffer.js @@ -9,8 +9,8 @@ features: [uint8array-base64] var array = new Uint8Array(2); var getterCalls = 0; -var recevierDetachingOptions = {}; -Object.defineProperty(recevierDetachingOptions, "alphabet", { +var receiverDetachingOptions = {}; +Object.defineProperty(receiverDetachingOptions, "alphabet", { get: function() { getterCalls += 1; $DETACHBUFFER(array.buffer); @@ -18,7 +18,7 @@ Object.defineProperty(recevierDetachingOptions, "alphabet", { } }); assert.throws(TypeError, function() { - array.toBase64(recevierDetachingOptions); + array.toBase64(receiverDetachingOptions); }); assert.sameValue(getterCalls, 1); diff --git a/test/built-ins/Uint8Array/prototype/toBase64/option-coercion.js b/test/built-ins/Uint8Array/prototype/toBase64/option-coercion.js index c63deca571..d3c61a8235 100644 --- a/test/built-ins/Uint8Array/prototype/toBase64/option-coercion.js +++ b/test/built-ins/Uint8Array/prototype/toBase64/option-coercion.js @@ -31,13 +31,13 @@ assert.sameValue(alphabetAccesses, 1); // side-effects from the getter on the receiver are reflected in the result var array = new Uint8Array([0]); -var recevierMutatingOptions = {}; -Object.defineProperty(recevierMutatingOptions, "alphabet", { +var receiverMutatingOptions = {}; +Object.defineProperty(receiverMutatingOptions, "alphabet", { get: function() { array[0] = 255; return "base64"; } }); -var result = array.toBase64(recevierMutatingOptions); +var result = array.toBase64(receiverMutatingOptions); assert.sameValue(result, "/w=="); assert.sameValue(array[0], 255);