diff --git a/Gruntfile.js b/Gruntfile.js index ff89c737d..838e7b395 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -229,7 +229,7 @@ module.exports = function(grunt) { grunt.task.loadTasks('tasks'); grunt.registerTask('bench', ['metrics']); - grunt.registerTask('sauce', [] /* process.env.SAUCE_USERNAME ? ['tests', 'connect', 'saucelabs-mocha'] : [] */); + grunt.registerTask('sauce', process.env.SAUCE_USERNAME ? ['tests', 'connect', 'saucelabs-mocha'] : []); grunt.registerTask('travis', process.env.PUBLISH ? ['default', 'sauce', 'metrics', 'publish:latest'] : ['default']); diff --git a/spec/security.js b/spec/security.js index 45b96c34b..12b96e629 100644 --- a/spec/security.js +++ b/spec/security.js @@ -11,11 +11,16 @@ describe('security issues', function() { }); it('should allow prototype properties that are not constructors', function() { - class TestClass { - get abc() { + function TestClass() { + } + + Object.defineProperty(TestClass.prototype, 'abc', { + get: function() { return 'xyz'; } - } + + }); + shouldCompileTo('{{#with this as |obj|}}{{obj.abc}}{{/with}}', new TestClass(), 'xyz'); });