diff --git a/RELEASES.rst b/RELEASES.rst index 206a6005..dd87d0fa 100644 --- a/RELEASES.rst +++ b/RELEASES.rst @@ -1696,8 +1696,8 @@ Planned * Incompatible change: remove Duktape.Buffer custom built-in, ArrayBuffer now serves its place; the following new bindings provide functionality - roughly equivalent to Duktape.Buffer: ArrayBuffer.allocPlain() and - ArrayBuffer.plainOf(), however, the ability of doing a 1:1 buffer-to-string + roughly equivalent to Duktape.Buffer: Uint8Array.allocPlain() and + Uint8Array.plainOf(), however, the ability of doing a 1:1 buffer-to-string coercion (using buffer data directly as the internal string representation) has been removed (GH-875, GH-1005) diff --git a/debugger/duk_debug_proxy.js b/debugger/duk_debug_proxy.js index aa874a80..fd8ba91f 100644 --- a/debugger/duk_debug_proxy.js +++ b/debugger/duk_debug_proxy.js @@ -35,10 +35,10 @@ var TORTURE = false; // for manual testing of binary/json parsing robustness * Duktape 1.x and 2.x buffer harmonization */ -var allocPlain = (typeof ArrayBuffer.allocPlain === 'function' ? - ArrayBuffer.allocPlain : Duktape.Buffer); -var plainOf = (typeof ArrayBuffer.plainOf === 'function' ? - ArrayBuffer.plainOf : Duktape.Buffer); +var allocPlain = (typeof Uint8Array.allocPlain === 'function' ? + Uint8Array.allocPlain : Duktape.Buffer); +var plainOf = (typeof Uint8Array.plainOf === 'function' ? + Uint8Array.plainOf : Duktape.Buffer); var bufferToString = (typeof String.fromBuffer === 'function' ? String.fromBuffer : String); diff --git a/dukweb/dukweb.html b/dukweb/dukweb.html index 593d32d3..a037406d 100644 --- a/dukweb/dukweb.html +++ b/dukweb/dukweb.html @@ -26,7 +26,7 @@ fragment identifier: