jorendorff / js-loaders

Pseudoimplementation of the proposed ES6 module loaders.
54 stars 7 forks source link

Consider options.lineNumber #32

Open jorendorff opened 11 years ago

jorendorff commented 11 years ago

eval(), evalAsync(), and load() all accept an options.address option; consider also allowing options.lineNumber.

Error().lineNumber is not standard. This or something like it will be necessary to support what browsers already do for inline <script>, but maybe the "something like it" doesn't have to be standard either.

jorendorff commented 11 years ago

My notes say "@samth is receptive. 2013 April 22."

samth commented 11 years ago

Replace options.address with a polymorphic location specifier (including file name, URL, line number, etc).

samth commented 11 years ago

Also, rename actualAddress to address.