mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
Revert "namespacing CoffeeScript in the browser, and sniffing the 'require' function instead of the 'exports' object"
This reverts commit 2f6b69b580.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Set up for both the browser and the server.
|
||||
if require?
|
||||
if process?
|
||||
process.mixin require 'nodes'
|
||||
path: require 'path'
|
||||
lexer: new (require('lexer').Lexer)()
|
||||
parser: require('parser').parser
|
||||
else
|
||||
exports: this.CoffeeScript: {}
|
||||
this.exports: this
|
||||
lexer: new Lexer()
|
||||
parser: this.parser
|
||||
parser: exports.parser
|
||||
|
||||
# Thin wrapper for Jison compatibility around the real lexer.
|
||||
parser.lexer: {
|
||||
|
||||
Reference in New Issue
Block a user