jerryscript-project / jerryscript

Ultra-lightweight JavaScript engine for the Internet of Things.
https://jerryscript.net
Apache License 2.0
6.87k stars 666 forks source link

Snapshot doesn't support tagged template literals #5122

Open ReimuNotMoe opened 6 months ago

ReimuNotMoe commented 6 months ago
JerryScript revision

514fa6735a5d7ff3093571c921120e3487734be9

Build platform

Debian GNU/Linux 12 (bookworm) (Linux 6.1.0-15-amd64 x86_64)

Build steps
mkdir build && cmake -H. -Bbuild && make -C build
Build log

Irrelevant.

Test case
`abc${Number}def`
Execution platform

Unnecessary if the same as the build platform.

Execution steps

Generate snapshot data with the jerry_generate_snapshot function, as instructed by https://github.com/jerryscript-project/jerryscript/blob/master/docs/02.API-REFERENCE.md#jerry_generate_snapshot

Output

RangeError: Unsupported feature: tagged template literals

Backtrace

None.

Expected behavior

Snapshot should be generated correctly.

ReimuNotMoe commented 6 months ago

Looks like this problem is the remaining of https://github.com/jerryscript-project/jerryscript/pull/3456.

I can try to fix this by myself if you can provide some instructions.