mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibJS: Allow division after this
token
This fixes the root cause of #21747, so it makes the clock work on https://toaruos.org
This commit is contained in:
parent
969d9e1fd3
commit
a3f34263fd
2 changed files with 5 additions and 1 deletions
|
@ -45,4 +45,8 @@ test("slash token resolution in lexer", () => {
|
|||
expect("yield / b/").not.toEval();
|
||||
expect("function* foo() { yield / b }").not.toEval();
|
||||
expect("function* foo() { yield / b/ }").toEval();
|
||||
|
||||
expect("this / 1").toEval();
|
||||
expect("this / 1 /").not.toEval();
|
||||
expect("this / 1 / 1").toEval();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue