mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
Adds esprima-based preprocessor.
This commit is contained in:
parent
bc3bcebde2
commit
bf52ff156d
15 changed files with 502 additions and 0 deletions
28
external/builder/fixtures_esprima/comments-expected.js
vendored
Normal file
28
external/builder/fixtures_esprima/comments-expected.js
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
function f1() {
|
||||
/* head */
|
||||
"1";
|
||||
/* mid */
|
||||
"2";
|
||||
}
|
||||
/* tail */
|
||||
function f2() {
|
||||
// head
|
||||
"1";
|
||||
// mid
|
||||
"2";
|
||||
}
|
||||
// tail
|
||||
function f2() {
|
||||
if ("1") {
|
||||
// begin block
|
||||
"1";
|
||||
}
|
||||
"2";
|
||||
// trailing
|
||||
if (/* s */
|
||||
"3")
|
||||
/*e*/
|
||||
{
|
||||
"4";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue