Browse Source

change js file

pull/5/head
Jason Williams 6 years ago
parent
commit
b73706aab1
  1. 2
      src/bin/bin.rs
  2. 2
      tests/js/defineVar.js
  3. 3
      tests/js/test.js

2
src/bin/bin.rs

@ -5,7 +5,7 @@ use boa::syntax::parser::Parser;
use std::fs::read_to_string;
pub fn main() {
let buffer = read_to_string("tests/js/defineVar.js").unwrap();
let buffer = read_to_string("tests/js/test.js").unwrap();
let mut lexer = Lexer::new(&buffer);
lexer.lex().unwrap();
let tokens = lexer.tokens;

2
tests/js/defineVar.js

@ -1,2 +0,0 @@
var b = [1, 2, 3];
b[1];

3
tests/js/test.js

@ -0,0 +1,3 @@
var a = 1;
var b = 2;
b + a;
Loading…
Cancel
Save