Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
How can I eval code with inline source map in browser to get a proper stack in exception?

Here is a code with inlined source map:

let b = 'sws';\r\nlet f = 'zzz';\r\nconsole.log('wow');\r\nfunction ff() {\r\n    console.log('wwwww');\r\n    return 'WEEE'.tr();\r\n}\r\nconsole.log(ff());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsSUFBSSxDQUFDLEdBQUcsS0FBSyxDQUFDO0FBQ2QsSUFBSSxDQUFDLEdBQUcsS0FBSyxDQUFDO0FBQ2QsT0FBTyxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQTtBQUVsQixTQUFTLEVBQUU7SUFDUCxPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFBO0lBQ3BCLE9BQU8sTUFBTSxDQUFDLEVBQUUsRUFBRSxDQUFDO0FBQ3ZCLENBQUM7QUFDRCxPQUFPLENBQUMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDLENBQUEifQ=="

if I simply do an eval for that code I'll get an exception but without an aligned source map. Is there a way to fix that?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

sourceMappingURL seems deprecated. Have you tried with sourceURL instead ?

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!