~unityfox-hackers/unityfox/trunk

« back to all changes in this revision

Viewing changes to modules/ctypes-utils.jsm

  • Committer: Chris Coulson
  • Date: 2012-01-19 12:01:48 UTC
  • Revision ID: chris.coulson@canonical.com-20120119120148-dkq7zfaaanwkxwex
Use strict mode everywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 * 
37
37
 * ***** END LICENSE BLOCK ***** */
38
38
 
 
39
"use strict";
 
40
 
39
41
const Cu = Components.utils;
40
42
 
41
43
Cu.import("resource://gre/modules/ctypes.jsm");
157
159
    let lib = {
158
160
      declare: function() {
159
161
        try {
160
 
          args = [];
 
162
          let args = [];
161
163
          args.push(arguments[0]);
162
164
          args.push(ctypes.default_abi);
163
165
          for each (let arg in Array.prototype.slice.call(arguments, 1)) {