summaryrefslogtreecommitdiff
path: root/Lib/javascript/v8/javascripthelpers.swg
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-08 14:05:02 -0600
committerZackery Spytz <zspytz@gmail.com>2019-05-08 14:05:02 -0600
commit2f48bec6665628e5d05159fdfca49c1853572b84 (patch)
treee0effbe3ec0206307e09df4981f36fe31432ea48 /Lib/javascript/v8/javascripthelpers.swg
parent1eb9cd3211ef646aa4683dd976eb2d06d6826bcc (diff)
parentf06330e720b0867817679fbf67aa8705ce13bbcf (diff)
downloadswig-2f48bec6665628e5d05159fdfca49c1853572b84.tar.gz
Merge remote-tracking branch 'upstream/master' into OCaml-INPUT-OUTPUT-INOUT-primitives
Diffstat (limited to 'Lib/javascript/v8/javascripthelpers.swg')
-rw-r--r--Lib/javascript/v8/javascripthelpers.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/javascript/v8/javascripthelpers.swg b/Lib/javascript/v8/javascripthelpers.swg
index 7b8a5ec23..80fbd7aa1 100644
--- a/Lib/javascript/v8/javascripthelpers.swg
+++ b/Lib/javascript/v8/javascripthelpers.swg
@@ -93,7 +93,7 @@ SWIGRUNTIME void JS_veto_set_variable(v8::Local<v8::Name> property, v8::Local<v8
#else
v8::Local<v8::String> sproperty;
if (property->ToString(SWIGV8_CURRENT_CONTEXT()).ToLocal(&sproperty)) {
- sproperty->WriteUtf8(buffer, 256);
+ SWIGV8_WRITE_UTF8(sproperty, buffer, 256);
res = sprintf(msg, "Tried to write read-only variable: %s.", buffer);
}
else {