1 <!DOCTYPE html> 2 <!-- 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. 4 Use of this source code is governed by a BSD-style license that can be 5 found in the LICENSE file. 6 --> 7 <link rel="import" href="/tracing/mre/function_handle.html"> 8 9 <script> 10 'use strict'; 11 12 tr.exportTo('pi.m', function() { 13 14 function testMapFunction(result, model) { 15 var someValue = 4; // Chosen by fair roll of the dice. 16 result.addPair('simon', {value: someValue}); 17 } 18 tr.mre.FunctionRegistry.register(testMapFunction); 19 20 return { 21 testMapFunction: testMapFunction 22 }; 23 }); 24 25 </script> 26