Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(495)

Unified Diff: sky/specs/script.md

Issue 878453003: Specs: dartification of script.md (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/specs/modules.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/script.md
diff --git a/sky/specs/script.md b/sky/specs/script.md
index 27b45ba7634589a18035e76da51dcbbbc615ab7d..d6033ff37311ec97718ca88a5dcebee987d0e978 100644
--- a/sky/specs/script.md
+++ b/sky/specs/script.md
@@ -1,12 +1,15 @@
Sky Script Language
===================
-The Sky script language is JavaScript, with strict mode enabled.
+The Sky script language is based on Dart.
-The global object is as specified by the JavaScript specification,
-with the following changes:
+It has the following differences from Dart:
- - An additional property, with the "global", whose value is the
- global object itself.
+- the 'library', 'part', 'import', 'export', and 'part of' directives
+ are not supported in sky (sky has its own module system)
-The getOwnPropertyKeys() method is removed.
+- ``<script>`` elements parse ``topLevelDefinition``s (there is no
+ ``libraryDefinition`` construct in the Sky Script Language).
+
+The way that Sky integrates the module system with its script language
+ is described in (modules.md)[modules.md].
« no previous file with comments | « sky/specs/modules.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698