Browse files

Merge pull request #490 from Gozala/hotfix/non-configurable-define@77…

…3723

fix Bug 773723 - Make `define` configurable so it can be redefined in module scope. r=@gozala
  • Loading branch information...
2 parents 1887e49 + b8de606 commit 7df505b625ce6ac1b3a7bdc22e1804de8a8d035a @Gozala Gozala committed Jul 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 packages/api-utils/lib/globals.js
View
1 packages/api-utils/lib/globals.js
@@ -39,6 +39,7 @@ Object.defineProperty(exports, 'define', {
// `define` is provided as a lazy getter that binds below defined `define`
// function to the module scope, so that require, exports and module
// variables remain accessible.
+ configurable: true,
get: function() {
let sandbox = this;
return function define(factory) {

0 comments on commit 7df505b

Please sign in to comment.