From d82bde8c1289b8a9f62da2a3e1be9fc8cbb9b829 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Mon, 12 Dec 2016 03:44:05 +0200 Subject: [PATCH] Fix HTYPE definitions for web UI debugger --- debugger/duk_debug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debugger/duk_debug.js b/debugger/duk_debug.js index f4073375d8..8dddca8745 100755 --- a/debugger/duk_debug.js +++ b/debugger/duk_debug.js @@ -107,9 +107,9 @@ debugCommandNames.forEach(function (k, i) { }); // Duktape heaphdr type constants, must match C headers -var DUK_HTYPE_STRING = 1; -var DUK_HTYPE_OBJECT = 2; -var DUK_HTYPE_BUFFER = 3; +var DUK_HTYPE_STRING = 0; +var DUK_HTYPE_OBJECT = 1; +var DUK_HTYPE_BUFFER = 2; // Duktape internal class numbers, must match C headers var dukClassNameMeta = yaml.load('duk_classnames.yaml');