mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 15:57:49 +00:00
Docs: $.fileName names the file being run in code eval or Function compiled
The script module docs, the script.run params text and the evidence line now say that $.fileName in code that eval or Function compiled gives the file being run, and the params text says that the empty name applies to code compiled from a script given as text.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -26,7 +26,8 @@
|
||||
//! Before a run starts, its preprocessor lines are read ([`include`]): included files take the
|
||||
//! place of their lines, and an error in one is reported at its own file, line and column.
|
||||
//! `$.evalFile(path)` runs another file in the same global environment and gives its last value,
|
||||
//! `$.fileName` is the file of the code that reads it and `$.includePath` the `#includepath` list.
|
||||
//! `$.fileName` is the file of the code that reads it (the file being run for code that `eval` or
|
||||
//! `Function` compiled) and `$.includePath` the `#includepath` list.
|
||||
//!
|
||||
//! A run writes to the Script Console with `$.write` and `$.writeln`, and `vc.log` adds a line
|
||||
//! there too. The session's console gets a start line, the run's output, its uncaught error, an end
|
||||
|
||||
Reference in New Issue
Block a user