Skip to content

Commit 9b4bcc4

Browse files
committed
php 7.4 fixes
1 parent e83c5da commit 9b4bcc4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/CoffeeScript/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ function interpolate_string($str, array $options = array()) // #{0}
652652
$pi = 0;
653653
$i = -1;
654654

655-
while ( isset($str{++$i}) )
655+
while ( isset($str[++$i]) )
656656
{
657657
$letter = $str[$i];
658658

tests/cases/strict.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ test "octal escape sequences prohibited", ->
4141
strict '"_\\1_"'
4242
strict '"\\\\\\1"'
4343
strictOk '"\\0"'
44-
eq "\x00", "\0"
44+
eq "\x00", "\\0"
4545
strictOk '"\\08"'
46-
eq "\x008", "\08"
46+
eq "\x008", "\\08"
4747
strictOk '"\\0\\8"'
48-
eq "\x008", "\0\8"
48+
eq "\x008", "\\0\\8"
4949
strictOk '"\\8"'
5050
eq "8", "\8"
5151
strictOk '"\\\\1"'

0 commit comments

Comments
 (0)