Javascript Firefox 24中的sourceURL不';好像不行
我无法在Firefox24中获得Javascript Firefox 24中的sourceURL不';好像不行,javascript,firefox,source-maps,Javascript,Firefox,Source Maps,我无法在Firefox24中获得/#sourceURL注释 这里是test.html: <html> <script src="test.js"></script> document.write('<p>hello</p>'); //# sourceURL=one.js var fn; fn = eval("(function two() { console.log(1); })\n//# sourceURL=two.js");
/#sourceURL
注释
这里是test.html:
<html>
<script src="test.js"></script>
document.write('<p>hello</p>');
//# sourceURL=one.js
var fn;
fn = eval("(function two() { console.log(1); })\n//# sourceURL=two.js");
fn.call();
fn = new Function([], "console.log(2);\n//# sourceURL=three.js");
fn.call();
下面是test.js:
<html>
<script src="test.js"></script>
document.write('<p>hello</p>');
//# sourceURL=one.js
var fn;
fn = eval("(function two() { console.log(1); })\n//# sourceURL=two.js");
fn.call();
fn = new Function([], "console.log(2);\n//# sourceURL=three.js");
fn.call();
document.write(“hello”);
//#sourceURL=one.js
var-fn;
fn=eval(“(函数二(){console.log(1);})\n/#sourceURL=two.js”);
fn.call();
fn=新函数([],“console.log(2);\n/#sourceURL=three.js”);
fn.call();
如果这能起作用,我会在Firefox调试器中看到三个文件:one.js
,two.js
,和three.js
。但是,调试器向我显示了一个文件,test.js
:
关于我遗漏了什么,有什么线索吗?没有,Firefox中还没有实现sourceURL 请参阅(发动机),(前端) 然而