From fc1ce9b154cb20c3d9dcd84b14461f585f1b7ec5 Mon Sep 17 00:00:00 2001 From: Hauke D Date: Wed, 5 Sep 2018 10:51:41 +0200 Subject: [PATCH] Added a note on "jscode" --- using.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/using.md b/using.md index 2625a64..ff0cd3e 100644 --- a/using.md +++ b/using.md @@ -470,7 +470,8 @@ stored in a Perl scalar `$foo` pointing to a JavaScript object `foo`: - `jscode` returns a string of JavaScript code that represents a reference to the JavaScript object. You should treat the string as an opaque value, no guarantees are made about its format and whether it may change in future - releases. This is an advanced function that should not normally be needed, + releases. *Do not* call JavaScript's `delete` on this value. + This is an advanced function that should not normally be needed, unless you are building strings of JavaScript to run. In that case, you may need to wrap the value in parentheses for it to evaluate correctly in JavaScript. Example: `js( "console.log(".$jsobject->jscode.")" )`