OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1417 | 1417 |
1418 /** | 1418 /** |
1419 * @param {function()} callback | 1419 * @param {function()} callback |
1420 * @return {number} | 1420 * @return {number} |
1421 */ | 1421 */ |
1422 self.setImmediate = function(callback) | 1422 self.setImmediate = function(callback) |
1423 { | 1423 { |
1424 Promise.resolve().then(callback).done(); | 1424 Promise.resolve().then(callback).done(); |
1425 return 0; | 1425 return 0; |
1426 } | 1426 } |
OLD | NEW |