michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: ({ michael@0: loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, michael@0: type:"Program", michael@0: body:[ michael@0: { michael@0: loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, michael@0: type:"ExpressionStatement", michael@0: expression:{ michael@0: loc:{start:{line:1, column:0}, end:{line:1, column:12}, source:null}, michael@0: type:"Literal", michael@0: value:"use strict" michael@0: } michael@0: } michael@0: ] michael@0: }) michael@0: */ michael@0: michael@0: function run_test() { michael@0: // Reflect.parse is better tested in js shell; this basically tests its presence. michael@0: var parseData = Reflect.parse('"use strict"'); michael@0: do_check_eq(parseData.body[0].expression.value, "use strict"); michael@0: }