Skip to content

Commit

Permalink
Add missing spec ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Lancaster committed Oct 4, 2020
1 parent 6e0f9d6 commit 4eab2db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boa/src/exec/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1472,8 +1472,7 @@ fn test_strict_mode_reserved_name() {
#[test]
fn test_strict_mode_func_decl_in_block() {
// Checks that a function declaration in a block is an error in
// strict mode code.
// TODO - find the spec reference for this.
// strict mode code as per https://tc39.es/ecma262/#early-error.

let scenario = r#"
'use strict';
Expand Down

0 comments on commit 4eab2db

Please sign in to comment.