Skip to content
Snippets Groups Projects
Commit 71ac921c authored by Caitlin Potter's avatar Caitlin Potter Committed by Marijn Haverbeke
Browse files

[javascript mode] Add a test for new.target

parent a06e2e1e
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,14 @@
" [keyword return] [variable-2 x];",
"}");
MT("new_target",
"[keyword function] [def F]([def target]) {",
" [keyword if] ([variable-2 target] [operator &&] [keyword new].[keyword target].[property name]) {",
" [keyword return] [keyword new]",
" .[keyword target];",
" }",
"}");
var jsonld_mode = CodeMirror.getMode(
{indentUnit: 2},
{name: "javascript", jsonld: true}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment