Sami Vaarala
Sami Vaarala
As far as I recall these are part of the Annex B optional regexp syntax features https://www.ecma-international.org/ecma-262/6.0/#sec-regular-expressions-patterns. Duktape only supports some parts of the Annex B syntax at present.
The specification allows custom LHS expressions where e.g. a function returns an LHS compatible value. There are no such standard values and Duktape doesn't unfortunately currently support such LHS values....
@fatcerberus You're correct, ES2015 includes this change: > 6.2.3: In ECMAScript 2015, Function calls are not allowed to return a Reference value. I wouldn't mind supporting it though, but it...
Duktape doesn't yet support the `yield` keyword, so you'll in essence need transpiling.
This is already discussed in #1618. At this point that's not unfortunately possible. While cloning pure ECMAScript objects would be relatively straightforward, the process would be complicated by the existence...
You could use duk_dump_function() and duk_load_function() on the big file as follows: A source file interpreted as a "program" is actually compiled into an anonymous function that you can dump...
Note that the bytecode dump is just binary data that you can reuse in a different Duktape heap. The result is a plain buffer, whose data you can push on...
> how can I get the binary blob in my program? there is no api called duk_get_bytecode ? or just use duk_get_buffer ? Bytecode is just binary data - so...
Thanks guys, I hope once this clears up we can have clear detection for all necessary variants. What's important for that is finding C preprocessor defines that are available before...
I'll install OpenIndiana and see what defines are available. It seems the best first step is to add illumos detection, and then ensure the existing Solaris detection works for versions...